<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>检查状态代码是否代表一个正常的退出。</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.pcntl-wexitstatus.html">« pcntl_wexitstatus</a></li>
      <li style="float: right;"><a href="function.pcntl-wifsignaled.html">pcntl_wifsignaled »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.pcntl.html">PCNTL 函数</a></li>
    <li>检查状态代码是否代表一个正常的退出。</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.pcntl-wifexited" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">pcntl_wifexited</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.1.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">pcntl_wifexited</span> &mdash; <span class="dc-title">检查状态代码是否代表一个正常的退出。</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.pcntl-wifexited-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>pcntl_wifexited</strong></span>(<span class="methodparam"><span class="type">int</span> <code class="parameter">$status</code></span>): <span class="type">bool</span></div>

  <p class="para rdfs-comment">
  检查子进程状态代码是否代表正常退出。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.pcntl-wifexited-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">status</code></dt>

     <dd>

      <p class="para">参数
<code class="parameter">status</code> 是提供给成功调用 <span class="function"><a href="function.pcntl-waitpid.html" class="function">pcntl_waitpid()</a></span>
时的状态参数。</p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.pcntl-wifexited-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   当子进程状态代码代表正常退出时返回 <strong><code>true</code></strong> ，其他情况返回 <strong><code>false</code></strong>。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.pcntl-wifexited-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.pcntl-waitpid.html" class="function" rel="rdfs-seeAlso">pcntl_waitpid()</a> - 等待或返回fork的子进程状态</span></li>
    <li class="member"><span class="function"><a href="function.pcntl-wexitstatus.html" class="function" rel="rdfs-seeAlso">pcntl_wexitstatus()</a> - 返回一个中断的子进程的返回代码</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>